 //发现页接口

import {http} from '@/utils/httpRequest'


// 查询关注的人发的帖子
export const getConcern = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/concern',
        data
    })
}
// 查询推荐帖子列表
export const getRecommend = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/recommend',
        data
    })
}
// 查询热门话题
export const getTopic = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/topic',
        data
    })
}

// 查询帖子详情页
export const getPostInfo = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/postInfo',
        data
    })
}

// 查询帖子一级评论
export const getPostComment = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/postComment',
        data
    })
}

// 查询帖子一级评论下二级评论
export const getPostCommentTwo = (data:object) => {
    return http({
        method: 'GET',
        url: '/wx/v1/discovered/postCommentTwo',
        data
    })
}